using System;
using System.Data;

namespace FreeFlow.Administration
{
	/// <summary>
	/// A timer that a folder is waiting for.
	/// </summary>
	public class Timer
	{
		internal Timer(IDataReader reader)
		{
      actionName = reader["eActionName"].ToString();
      time = (DateTime)reader["eWaitTime"];
		}

    private string actionName;
    /// <summary>
    /// Gets the name of the action that will be triggered by this timer.
    /// </summary>
    public string ActionName
    {
      get
      {
        return actionName;
      }
    }

    private DateTime time;
    /// <summary>
    /// Gets the time when the timer will be triggered.
    /// </summary>
    /// <value>The time.</value>
    public DateTime Time
    {
      get
      {
        return time;
      }
    }
	}
}
